//version 2016-03-23
/**
 * Created by Administrator on 2015/3/17.
 */
$(document).ready(function(){
    $("#loginOut").click(function(){
        $.getJSON("admin/loginOut",{},function(){
            window.location.href="admin"
        })
    })
    $("#refreshRole").click(function(){
        $.getJSON("admin/refresh_role",{},function(data){
            if(data.code == 0){
                window.location.reload();
            }else{
                alert("刷新失败")
            }
        })
    })
})